package com.barbeque.mall.bean.goods.bo;

import com.barbeque.mall.bean.goods.MarketGoods;
import com.barbeque.mall.bean.goods.MarketGoodsAttribute;
import com.barbeque.mall.bean.goods.MarketGoodsProduct;
import com.barbeque.mall.bean.goods.MarketGoodsSpecification;
import lombok.Data;

import javax.validation.Valid;
import java.util.List;

/**
 * @author Euphonium
 * @since 2022/07/18
 */
@Data
public class GoodsAllinone {

    // 商品参数
    private List<MarketGoodsAttribute> attributes;

    // 商品介绍(商品编号/名称，不能为null，也不能为空；价格必须为数字)
    // 嵌套校验
    @Valid
    private MarketGoods goods;

    // 商品库存
    private List<MarketGoodsProduct> products;

    // 商品规格
    private List<MarketGoodsSpecification> specifications;

}
